package com.sunny.common;

public enum ServerResponseCode {
	SUCCESS(0, "SUCCESS"),
	ERROR(1, "ERROR"),
	NEED_LOGIN(10, "NEED_LOGIN"),
	ILLEAGAL_ARGUMENT(2, "ILLEAGAL_ARGUMENT");
	 
	private final int code;
	private final String msg;
	
    ServerResponseCode(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
}
